<?php
$db['members'] = array(
    'columns' => array(
        'member_id' => array(
            'type' => 'number',
            'pkey' => true,
            'comment' => app::get('pam')->_('账户序号ID')
        ),
        'login_account' => array(
            'type' => 'varchar(100)',
            'is_title' => true,
            'required' => true,
            'comment' => app::get('pam')->_('登录名')
        ),
        'login_type' => array(
            'pkey' => true,
            'type' => array(
                'local' => '用户名',
                'mobile' => '手机',
                'email' => '邮箱'
            ),
            'default' => 'local',
            'comment' => app::get('pam')->_('账户类型')
        ),
        'login_password' => array(
            'type' => 'varchar(32)',
            'required' => true,
            'comment' => app::get('pam')->_('登录密码')
        ),
        'password_account' => array(
            'type' => 'varchar(100)',
            'required' => true,
            'comment' => app::get('pam')->_('登录密码加密所用账号')
        ),
        'disabled' => array(
            'type' => 'bool',
            'default' => 'false'
        ),
        'loginstyle' => array(
            'type' => 'varchar(100)',
            'default' => 'common',
            'comment' => app::get('pam')->_('登陆方式 信任登陆/普通登陆')
        ),
        'logindisplay' => array(
            'type' => 'varchar(100)',
            'default' => 'true',
            'comment' => app::get('pam')->_('信任登陆只能修改一次用户名')
        ),
        'createtime' => array(
            'type' => 'time',
            'comment' => app::get('pam')->_('创建时间')
        )
    ),
    'index' => array(
        'ind_login_account' => array(
            'columns' => array(
                0 => 'login_account'
            )
        )
    ),
    'engine' => 'innodb',
    'comment' => app::get('pam')->_('前台会员用户表')
);
